const TokenKey = 'hsk-hybird-token'
const BaseApiPrefix = 'HSK_API_PREFIX'
import { storage } from '@/libs/utils';

export function getToken() {
    return storage.get(TokenKey);
}

export function setToken(token) {
    storage.set(TokenKey, token);
}

export function removeToken() {
    storage.del(TokenKey);
}

export function getBaseApiFrefix() {
    return storage.get(BaseApiPrefix);
}

export function setBaseApiFrefix(apiFrefix) {
    storage.set(BaseApiPrefix, apiFrefix);
}
